package com.woniu.enums;

/**
 * @Author LXB
 * @Date 2023/8/19 19:47
 * @Description
 **/
public enum ServiceExceptionEnum {
    SUCESS(200, "操作成功"),
    FIAL(200500, "操作失败"),
    MISSING_PARAM_ERROR(200001, "参数缺失"),
    SYS_ACCOUNT_NOT_EXIST(200101, "账号不存在"),
    SYS_ACCOUNT_IS_EXIST(200102, "账号已存在"),
    SYS_ROLE_NOT_EXIST(200103, "角色不存在"),
    SYS_PASSWORD_ERROR(200104, "密码错误"),
    SYS_UNKNOWN_ERROR(200105, "未知错误"),
    SYS_UNAUTHORIZED(200106, "请登录"),
    SYS_FORBIDDEN(200107, "权限不足"),
    SYS_PARAMETER_ERROR(200108, "参数不合法"),
    CODE_ERROR(200109, "验证码错误"),
    CODE_NOT_EXIST(200110, "未检测到申请验证码"),
    SMS_CODE_ERROR(200109, "验证码错误"),
    SMS_CODE_NOT_EXIST(200110, "未检测到申请验证码"),
    SMS_CODE_MOBILE_ERROR(200111, "申请的手机号码与登录手机号码不一致"),
    SMS_CODE_FREQUENTLY_ERROR(200112, "操作频繁，请过一段时间重试"),
    SMS_CODE_RETRY_ERROR(200113, "请?s后重试"),
    SYS_PHONE_IS_EXIST(200114, "手机号码已被注册，请使用其他手机号码"),
    SYS_ACCOUNT_AUDIT_ERROR(200115, "单位资质信息审核未通过，无法进行操作"),
    METHOD_ARGUMENT_ERROR(200116, "请填写完整表单信息"),
    METHOD_VALIDATION_ERROR(200117, "参数合法性校验异常!"),
    DATA_REPEAT_ERROR(200118, "信息已存在"),
    SYS_USER_NOT_ENABLED(200121, "用户状态为禁用！"),
    EXCEL_FIAL(400,"无相关信息可导出，请重新尝试！"),
    ;

    ServiceExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int code;

    public String message;

}
